﻿namespace Infra.Validation
{
    /// <summary>
    /// Interface used to create new validators.
    /// </summary>
    /// <typeparam name="T">The object to validate.</typeparam>
    public interface IValidator<T> where T : class
    {
        /// <summary>
        /// Validates the specified object.
        /// </summary>
        /// <param name="objectToValidate">The object to validate.</param>
        /// <returns></returns>
        ValidationResult Validate(T objectToValidate);
    }
}
